<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>银行业务管理系统 - 管理员模块</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body> 
    <!-- 头部 -->
    <header>
        <div class="container header-content">
            <div class="logo">
                <span class="logo-icon">🏦</span>
                银行业务管理系统 - 管理员模块
            </div>
            <div class="user-info">
                <div class="user-avatar">AD</div>
                <div class="user-name">管理员</div>
                <div class="user-time">2025年06月19日 星期四</div>
            </div>
        </div>
    </header>
    
    <!-- 导航菜单 -->
    <div class="nav-menu">
        <ul class="menu-list">
            <li class="menu-item active" data-tab="customer">客户管理</li>
            <li class="menu-item" data-tab="card">银行卡管理</li>
            <li class="menu-item" data-tab="deposit">存款业务管理</li>
        </ul>
    </div>
    
    <!-- 主内容区 -->
    <div class="container main-content">
        <!-- 客户管理页面 -->
        <div id="customer-tab" class="tab-content active">
            <h2 class="page-title">客户信息管理</h2>
            
            <div class="search-area">
                <div class="search-box">
                    <div class="search-group">
                        <label for="customer-search-type">查询类型:</label>
                        <select id="customer-search-type" class="search-input">
                            <option value="name">客户姓名</option>
                            <option value="pid">身份证号</option>
                            <option value="tel">联系电话</option>
                        </select>
                    </div>
                    <div class="search-group">
                        <label for="customer-search-keyword">查询关键词:</label>
                        <input type="text" id="customer-search-keyword" class="search-input" placeholder="请输入查询关键词">
                    </div>
                    <button id="customer-search-btn" class="btn btn-primary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <circle cx="11" cy="11" r="7"></circle>
                            <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
                        </svg>
                        搜索
                    </button>
                    <button id="customer-reset-btn" class="btn btn-secondary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <path d="M20 11H7.83a4 4 0 0 0-3.83 3.83L4 20l4-4h14a2 2 0 0 0 0-4z"></path>
                        </svg>
                        重置
                    </button>
                </div>
                
                <div class="filter-box">
                    <div class="filter-group">
                        <label for="customer-address">所在地区:</label>
                        <select id="customer-address" class="search-input">
                            <option value="">全部地区</option>
                            <option value="北京">北京</option>
                            <option value="上海">上海</option>
                            <option value="广州">广州</option>
                            <option value="深圳">深圳</option>
                            <option value="其他">其他</option>
                        </select>
                    </div>
                </div>
            </div>
            
            <div id="customer-alert" class="alert" style="display: none;"></div>
            
            <div class="card">
                <div class="card-header">
                    <div class="card-title">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
                            <circle cx="8.5" cy="7" r="4"></circle>
                            <line x1="21" y1="12" x2="9" y2="12"></line>
                        </svg>
                        客户列表
                    </div>
                    <div class="btn-group">
                        <button id="add-customer-btn" class="btn btn-primary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
                            </svg>
                            添加客户
                        </button>
                        <button id="export-customer-btn" class="btn btn-secondary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
                                <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
                            </svg>
                            导出CSV
                        </button>
                    </div>
                </div>
                
                <div id="customer-loading" class="loading" style="display: none;">
                    <div class="loading-spinner"></div>
                    <span>加载客户数据中...</span>
                </div>
                
                <div id="customer-table-container">
                    <table class="table" id="customer-table">
                        <thead>
                            <tr>
                                <th>客户ID</th>
                                <th>姓名</th>
                                <th>身份证号</th>
                                <th>电话</th>
                                <th>地址</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="customer-table-body">
                            <!-- 客户数据将通过JavaScript动态加载 -->
                        </tbody>
                    </table>
                </div>
                
                <div class="pagination-container" id="customer-pagination">
                    <!-- 分页将通过JavaScript动态生成 -->
                </div>
            </div>
        </div>
        
        <!-- 银行卡管理页面 -->
        <div id="card-tab" class="tab-content" style="display: none;">
            <h2 class="page-title">银行卡管理</h2>
            
            <div class="search-area">
                <div class="search-box">
                    <div class="search-group">
                        <label for="card-search-type">查询类型:</label>
                        <select id="card-search-type" class="search-input">
                            <option value="cardNo">卡号</option>
                            <option value="customerName">客户姓名</option>
                            <option value="savingType">存款类型</option>
                        </select>
                    </div>
                    <div class="search-group">
                        <label for="card-search-keyword">查询关键词:</label>
                        <input type="text" id="card-search-keyword" class="search-input" placeholder="请输入查询关键词">
                    </div>
                    <button id="card-search-btn" class="btn btn-primary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <circle cx="11" cy="11" r="7"></circle>
                            <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
                        </svg>
                        搜索
                    </button>
                    <button id="card-reset-btn" class="btn btn-secondary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <path d="M20 11H7.83a4 4 0 0 0-3.83 3.83L4 20l4-4h14a2 2 0 0 0 0-4z"></path>
                        </svg>
                        重置
                    </button>
                </div>
                
                <div class="filter-box">
                    <div class="filter-group">
                        <label for="card-balance-min">余额范围:</label>
                        <input type="number" id="card-balance-min" class="search-input" placeholder="最低余额">
                        <span>至</span>
                        <input type="number" id="card-balance-max" class="search-input" placeholder="最高余额">
                    </div>
                    <div class="filter-group">
                        <label for="card-status">卡状态:</label>
                        <select id="card-status" class="search-input">
                            <option value="">全部状态</option>
                            <option value="正常">正常</option>
                            <option value="冻结">冻结</option>
                            <option value="挂失">挂失</option>
                            <option value="注销">注销</option>
                        </select>
                    </div>
                </div>
            </div>
            
            <div id="card-alert" class="alert" style="display: none;"></div>
            
            <div class="card">
                <div class="card-header">
                    <div class="card-title">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <rect x="2" y="6" width="20" height="12" rx="2" ry="2"></rect>
                            <circle cx="12" cy="12" r="2"></circle>
                        </svg>
                        银行卡列表
                    </div>
                    <div class="btn-group">
                        <button id="add-card-btn" class="btn btn-primary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
                            </svg>
                            添加银行卡
                        </button>
                        <button id="export-card-btn" class="btn btn-secondary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
                                <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
                            </svg>
                            导出CSV
                        </button>
                    </div>
                </div>
                
                <div id="card-loading" class="loading" style="display: none;">
                    <div class="loading-spinner"></div>
                    <span>加载银行卡数据中...</span>
                </div>
                
                <div id="card-table-container">
                    <table class="table" id="card-table">
                        <thead>
                            <tr>
                                <th>卡号</th>
                                <th>客户姓名</th>
                                <th>存款类型</th>
                                <th>余额</th>
                                <th>开卡日期</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="card-table-body">
                            <!-- 银行卡数据将通过JavaScript动态加载 -->
                        </tbody>
                    </table>
                </div>
                
                <div class="pagination-container" id="card-pagination">
                    <!-- 分页将通过JavaScript动态生成 -->
                </div>
            </div>
        </div>
        
        <!-- 存款业务管理页面 -->
        <div id="deposit-tab" class="tab-content" style="display: none;">
            <h2 class="page-title">存款业务管理</h2>
            
            <div class="search-area">
                <div class="search-box">
                    <div class="search-group">
                        <label for="deposit-search-type">查询类型:</label>
                        <select id="deposit-search-type" class="search-input">
                            <option value="businessNo">业务编号</option>
                            <option value="businessName">业务名称</option>
                            <option value="description">业务描述</option>
                        </select>
                    </div>
                    <div class="search-group">
                        <label for="deposit-search-keyword">查询关键词:</label>
                        <input type="text" id="deposit-search-keyword" class="search-input" placeholder="请输入查询关键词">
                    </div>
                    <button id="deposit-search-btn" class="btn btn-primary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <circle cx="11" cy="11" r="7"></circle>
                            <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
                        </svg>
                        搜索
                    </button>
                    <button id="deposit-reset-btn" class="btn btn-secondary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <path d="M20 11H7.83a4 4 0 0 0-3.83 3.83L4 20l4-4h14a2 2 0 0 0 0-4z"></path>
                        </svg>
                        重置
                    </button>
                </div>
                
                <div class="filter-box">
                    <div class="filter-group">
                        <label for="deposit-interest-min">利率范围:</label>
                        <input type="number" id="deposit-interest-min" class="search-input" placeholder="最低利率(%)">
                        <span>至</span>
                        <input type="number" id="deposit-interest-max" class="search-input" placeholder="最高利率(%)">
                    </div>
                    <div class="filter-group">
                        <label for="deposit-term-min">存期范围:</label>
                        <input type="number" id="deposit-term-min" class="search-input" placeholder="最短存期(月)">
                        <span>至</span>
                        <input type="number" id="deposit-term-max" class="search-input" placeholder="最长存期(月)">
                    </div>
                </div>
            </div>
            
            <div id="deposit-alert" class="alert" style="display: none;"></div>
            
            <div class="card">
                <div class="card-header">
                    <div class="card-title">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                            <rect x="2" y="6" width="20" height="12" rx="2" ry="2"></rect>
                            <path d="M6 12h.01M10 12h.01M14 12h.01M18 12h.01"></path>
                        </svg>
                        存款业务列表
                    </div>
                    <div class="btn-group">
                        <button id="add-deposit-btn" class="btn btn-primary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
                            </svg>
                            添加存款业务
                        </button>
                        <button id="export-deposit-btn" class="btn btn-secondary">
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
                                <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
                                <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
                            </svg>
                            导出CSV
                        </button>
                    </div>
                </div>
                
                <div id="deposit-loading" class="loading" style="display: none;">
                    <div class="loading-spinner"></div>
                    <span>加载存款业务数据中...</span>
                </div>
                
                <div id="deposit-table-container">
                    <table class="table" id="deposit-table">
                        <thead>
                            <tr>
                                <th>业务编号</th>
                                <th>业务名称</th>
                                <th>年利率(%)</th>
                                <th>存期(月)</th>
                                <th>起存金额</th>
                                <th>描述</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="deposit-table-body">
                            <!-- 存款业务数据将通过JavaScript动态加载 -->
                        </tbody>
                    </table>
                </div>
                
                <div class="pagination-container" id="deposit-pagination">
                    <!-- 分页将通过JavaScript动态生成 -->
                </div>
            </div>
        </div>
    </div>
    
    <!-- 添加/编辑客户模态框 -->
    <div id="customer-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-title" id="customer-modal-title">添加客户</div>
                <span class="close-modal">&times;</span>
            </div>
            <div class="modal-body">
                <form id="customer-form" novalidate>
                    <input type="hidden" id="customer-id" name="customerID">
                    <div class="form-group">
                        <label for="customer-name" class="form-label">客户姓名 <span class="required">*</span></label>
                        <input type="text" id="customer-name" name="customerName" class="form-input" required>
                        <div class="form-error" id="customer-name-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="customer-pid" class="form-label">身份证号 <span class="required">*</span></label>
                        <input type="text" id="customer-pid" name="PID" class="form-input" required>
                        <div class="form-error" id="customer-pid-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="customer-telephone" class="form-label">联系电话</label>
                        <input type="text" id="customer-telephone" name="telephone" class="form-input">
                        <div class="form-error" id="customer-telephone-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="customer-address" class="form-label">联系地址</label>
                        <input type="text" id="customer-address" name="address" class="form-input">
                        <div class="form-error" id="customer-address-error"></div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="cancel-customer-btn" class="btn btn-secondary">取消</button>
                <button id="save-customer-btn" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
    
    <!-- 添加/编辑银行卡模态框 -->
    <div id="card-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-title" id="card-modal-title">添加银行卡</div>
                <span class="close-modal">&times;</span>
            </div>
            <div class="modal-body">
                <form id="card-form" novalidate>
                    <input type="hidden" id="card-id" name="cardID">
                    <div class="form-group">
                        <label for="card-customer" class="form-label">客户姓名 <span class="required">*</span></label>
                        <select id="card-customer" name="customerID" class="form-input" required>
                            <!-- 客户选项将通过JavaScript动态加载 -->
                        </select>
                        <div class="form-error" id="card-customer-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="card-saving" class="form-label">存款类型 <span class="required">*</span></label>
                        <select id="card-saving" name="savingID" class="form-input" required>
                            <!-- 存款类型选项将通过JavaScript动态加载 -->
                        </select>
                        <div class="form-error" id="card-saving-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="card-open-money" class="form-label">开卡金额 <span class="required">*</span></label>
                        <input type="number" id="card-open-money" name="openMoney" class="form-input" step="0.01" required>
                        <div class="form-error" id="card-open-money-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="card-password" class="form-label">取款密码 <span class="required">*</span></label>
                        <input type="password" id="card-password" name="pass" class="form-input" minlength="6" maxlength="6" required>
                        <div class="form-error" id="card-password-error"></div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="cancel-card-btn" class="btn btn-secondary">取消</button>
                <button id="save-card-btn" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
    
    <!-- 添加/编辑存款业务模态框 -->
    <div id="deposit-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-title" id="deposit-modal-title">添加存款业务</div>
                <span class="close-modal">&times;</span>
            </div>
            <div class="modal-body">
                <form id="deposit-form" novalidate>
                    <input type="hidden" id="deposit-id" name="depositID">
                    <div class="form-group">
                        <label for="deposit-name" class="form-label">业务名称 <span class="required">*</span></label>
                        <input type="text" id="deposit-name" name="businessName" class="form-input" required>
                        <div class="form-error" id="deposit-name-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="deposit-interest" class="form-label">年利率(%) <span class="required">*</span></label>
                        <input type="number" id="deposit-interest" name="interestRate" class="form-input" step="0.01" required>
                        <div class="form-error" id="deposit-interest-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="deposit-term" class="form-label">存期(月) <span class="required">*</span></label>
                        <input type="number" id="deposit-term" name="term" class="form-input" min="1" required>
                        <div class="form-error" id="deposit-term-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="deposit-min-amount" class="form-label">起存金额 <span class="required">*</span></label>
                        <input type="number" id="deposit-min-amount" name="minAmount" class="form-input" step="0.01" required>
                        <div class="form-error" id="deposit-min-amount-error"></div>
                    </div>
                    <div class="form-group">
                        <label for="deposit-description" class="form-label">业务描述</label>
                        <textarea id="deposit-description" name="description" class="form-input" rows="3"></textarea>
                        <div class="form-error" id="deposit-description-error"></div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="cancel-deposit-btn" class="btn btn-secondary">取消</button>
                <button id="save-deposit-btn" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
    
    <!-- 操作提示模态框 -->
    <div id="prompt-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-title" id="prompt-title">提示</div>
                <span class="close-modal">&times;</span>
            </div>
            <div class="modal-body" id="prompt-message">
                确定要执行此操作吗？
            </div>
            <div class="modal-footer">
                <button id="cancel-prompt-btn" class="btn btn-secondary">取消</button>
                <button id="confirm-prompt-btn" class="btn btn-danger">确认</button>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
<style>
    /* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --primary-light: #e8f0fe;
    --secondary-color: #f5f5f5;
    --danger-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 4px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

/* 头部样式 */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.logo-icon {
    margin-right: 10px;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.user-name {
    font-weight: bold;
    margin-right: 15px;
}

.user-time {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 导航菜单 */
.nav-menu {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.menu-list {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.menu-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--primary-light);
}

.menu-item:hover:not(.active) {
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    padding: 20px 0;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 搜索区域 */
.search-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-box, .filter-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-group, .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input, .form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s;
}

.search-input:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0d62d0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d33724;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--secondary-color);
    font-weight: bold;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tr:hover {
    background-color: var(--primary-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 加载状态 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(26, 115, 232, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-item {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-color);
}

.required {
    color: var(--danger-color);
    margin-left: 5px;
}

.form-error {
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 3px;
    display: none;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 提示框 */
.alert {
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.1);
    border-left: 3px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(234, 67, 53, 0.1);
    border-left: 3px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(251, 188, 5, 0.1);
    border-left: 3px solid var(--warning-color);
    color: var(--warning-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .user-info {
        margin-top: 10px;
    }
    
    .search-area {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box, .filter-box {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .search-group, .filter-group {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}
</style>